import request from '@/utils/request'

// 导出中心详情
export function getExportConfig(id) {
  return request({
    baseURL: window.APP_GETEWAY.dexh,
    url: `/export_config/${id}`,
    method: 'get',
  })
}

// 新增导出详情
export function exportRord(data) {
  return request({
    baseURL: window.APP_GETEWAY.dexh,
    url: `/export_record`,
    method: 'post',
    data,
  })
}

// 新增导出模版
export function exporttpl(data) {
  return request({
    baseURL: window.APP_GETEWAY.dexh,
    url: `/export_tpl`,
    method: 'post',
    data,
  })
}

// 字段模板
export function exportTemplateOne(params) {
  return request({
    baseURL: window.APP_GETEWAY.dexh,
    url: `/export_config/one`,
    method: 'get',
    params,
  })
}

// 删除模板
export function exportTemplateDelete(id) {
  return request({
    baseURL: window.APP_GETEWAY.dexh,
    url: `/export_tpl/${id}`,
    method: 'delete',
  })
}
